﻿<phone:PhoneApplicationPage x:Class="QCats.Views.InformationView"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
                            d:DesignHeight="768"
                            d:DesignWidth="480"
                            DataContext="{Binding Source={StaticResource Locator},
                                                  Path=InformationVM}"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            Orientation="Portrait"
                            shell:SystemTray.IsVisible="True"
                            SupportedOrientations="Portrait"
                            mc:Ignorable="d">
	<phone:PhoneApplicationPage.Resources>
		<DataTemplate x:Key="InfoDataTemplate">
			<Border Height="150" Width="450" Background="#33FFFFFF" Margin="0,5">
				<StackPanel Orientation="Horizontal" >
					<Image HorizontalAlignment="Left" Width="50" Height="50" Source="{Binding HeadUrl}" VerticalAlignment="Top" Margin="0"/>
					<StackPanel Width="395" Margin="5,0,0,0">
						<StackPanel Orientation="Horizontal">
							<TextBlock x:Name="Name" TextWrapping="Wrap" Text="{Binding Name}" FontSize="18.667" Foreground="#FFE9E9E9"/>
							<TextBlock x:Name="Prefix" TextWrapping="Wrap" Text="{Binding Prefix}" FontSize="18.667" Foreground="#FFE9E9E9"/>
						</StackPanel>
						<TextBlock x:Name="Title" TextWrapping="Wrap" Text="{Binding Title}" FontSize="24" Margin="0,5,0,0" VerticalAlignment="Center"/>
					</StackPanel>
				</StackPanel>
			</Border>
		</DataTemplate>
	</phone:PhoneApplicationPage.Resources>

    <!--  LayoutRoot is the root grid where all page content is placed  -->
    <toolkit:GestureService.GestureListener>
        <toolkit:GestureListener DoubleTap="GestureListener_DoubleTap"
                                 DragCompleted="GestureListener_DragCompleted"
                                 DragDelta="GestureListener_DragDelta"
                                 DragStarted="GestureListener_DragStarted"
                                 Flick="GestureListener_Flick"
                                 GestureBegin="GestureListener_GestureBegin"
                                 GestureCompleted="GestureListener_GestureCompleted"
                                 Hold="GestureListener_Hold"
                                 PinchCompleted="GestureListener_PinchCompleted"
                                 PinchDelta="GestureListener_PinchDelta"
                                 PinchStarted="GestureListener_PinchStarted"
                                 Tap="GestureListener_Tap" />
    </toolkit:GestureService.GestureListener>
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!--  TitlePanel contains the name of the application and page title  -->
        <StackPanel x:Name="TitlePanel"
                    Grid.Row="0"
                    Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle"
                       Style="{StaticResource PhoneTextNormalStyle}"
                       Text="MY APPLICATION" />
            <TextBlock x:Name="PageTitle"
                       Margin="9,-7,0,0"
                       Style="{StaticResource PhoneTextTitle1Style}"
                       Text="page name" />
        </StackPanel>

        <!--  ContentPanel - place additional content here  -->
        <Grid x:Name="ContentPanel"
              Grid.Row="1"
              Margin="12,0,12,0" >
        	<ListBox ItemTemplate="{StaticResource InfoDataTemplate}" ItemsSource="{Binding FeedsItems}"/>
        </Grid>
    </Grid>

    <!--  Sample code showing usage of ApplicationBar  -->
    <!--
        <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
        <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
        <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
        <shell:ApplicationBar.MenuItems>
        <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
        <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
        </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
        </phone:PhoneApplicationPage.ApplicationBar>
    -->

</phone:PhoneApplicationPage>
